package com.example.demo;

import com.example.demo.init.ApplicationContextCache;
import org.apache.tomcat.Jar;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

@MapperScan("com.example.demo.mapper")
@SpringBootApplication
public class DemoApplication {

    // dev-5asassfdweqfughf
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(DemoApplication.class, args);
        ApplicationContextCache.setApplicationContext(context);
    }

}

